public class test51 {
    public static void main(String[] args) {
        String str1 = "cnm,萨克逗你玩的罚款,sb";
        String[] str2 = {"cnm","sb","sjb","md"};
        for(int i=0;i<str2.length;i++){
            str1=str1.replace(str2[i],"xxx");
        }
        System.out.println(str1);
    }
}
